package com.burstly.lib.component.networkcomponent.burstly.html.mraid;

import android.app.Activity;
import com.burstly.lib.util.ScreenOrientationManager;

class OrientationRequestedEvent extends AbstractParseParamsEvent<ExpandAndOrientationProperties>
{
  static final int EVENT_ID = 12;
  private MraidView mView;

  protected OrientationRequestedEvent()
  {
    super(ExpandAndOrientationProperties.class);
  }

  public void parsed(ExpandAndOrientationProperties paramExpandAndOrientationProperties)
  {
    if (this.mView.isInterstitial())
      new ScreenOrientationManager((Activity)this.mView.getContext()).setOrientation(paramExpandAndOrientationProperties.getForceOrientation(), paramExpandAndOrientationProperties.getAllowOrientationChange().booleanValue());
    ScreenOrientationManager localScreenOrientationManager;
    do
    {
      do
        return;
      while (this.mView.mViewState.getState() != MraidBridgeState.EXPANDED);
      localScreenOrientationManager = this.mView.getScreenOrientationMgr();
    }
    while (localScreenOrientationManager == null);
    localScreenOrientationManager.setOrientation(paramExpandAndOrientationProperties.getForceOrientation(), paramExpandAndOrientationProperties.getAllowOrientationChange().booleanValue());
  }

  protected boolean setUpEvent(MraidView paramMraidView, Object[] paramArrayOfObject)
  {
    this.mView = paramMraidView;
    return true;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.mraid.OrientationRequestedEvent
 * JD-Core Version:    0.6.2
 */